import axios from '@/libs/api.request'

export function createClass (data) {
    return axios.request({
        url: '/classManage/add',
        data: data,
        method: 'post'
    })
}
export function updateClass (data) {
    return axios.request({
        url: '/classManage/update',
        data: data,
        method: 'post'
    })
}
export function delClass (id) {
    return axios.request({
        url: '/classManage/delete',
        params: { id },
        method: 'get'
    })
}

export function queryClassInfo (id) {
    return axios.request({
        url: '/classManage/info',
        params: { id },
        method: 'get'
    })
}

export function queryClassList (data) {
    return axios.request({
        url: '/classManage/list',
        data,
        method: 'post'
    })
}
